home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / FLTK-1.0.6 / packages / solaris-sparc / makedist.sh < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  1999-09-15  |  694 b   |  32 lines

  1. #!/bin/sh
  2. #
  3. # makedist - make a solaris sparc distribution.
  4. #
  5.  
  6. rm -rf fltk
  7.  
  8. echo "Making distribution..."
  9.  
  10. cd ../..
  11. #
  12. # Create a dummy prototype file with the full path for the pkginfo file;
  13. # this is a bug in Solaris' pkgmk program...
  14. #
  15.  
  16. cwd=`pwd`
  17. echo "i pkginfo=$cwd/packages/solaris-sparc/fltk.pkginfo" >fltk.prototype
  18. cat packages/solaris-sparc/fltk.prototype >>fltk.prototype
  19. pkgmk -d packages/solaris-sparc -b $cwd -f fltk.prototype fltk
  20. rm fltk.prototype
  21. cd packages/solaris-sparc
  22.  
  23. echo "Packing distribution..."
  24.  
  25. pkgtrans -s . fltk-1.0.5-solaris-sparc.pkg fltk
  26. rm -rf fltk
  27.  
  28. echo "Compressing distribution..."
  29.  
  30. rm -f fltk-1.0.5-solaris-sparc.pkg.gz
  31. gzip -9 fltk-1.0.5-solaris-sparc.pkg
  32.